(utf-translate-cjk-charsets): New
authorKenichi Handa <handa@m17n.org>
Sat, 12 Jun 2004 02:10:37 +0000 (02:10 +0000)
committerKenichi Handa <handa@m17n.org>
Sat, 12 Jun 2004 02:10:37 +0000 (02:10 +0000)
commitfadd5ef0d17bd4bb112eab98289d075e661f8c47
treec71a45fd77cc712574e65afb82652c278abc2347
parentc08b6702fa29418f1a3ba3ffb290997a476eea6c
(utf-translate-cjk-charsets): New
variable.
(utf-translate-cjk-unicode-range): New variable.
(utf-translate-cjk-load-tables): New function.
(utf-lookup-subst-table-for-decode): New function.
(utf-lookup-subst-table-for-encode): New function.
(utf-translate-cjk-mode): Init-value changed to t.  Don't load
tables here.  Update safe-charsets of utf-* coding systems.
(ccl-mule-utf-untrans): New CCL.
(ccl-decode-mule-utf-8): Call ccl-mule-utf-untrans.  Use `repeat'
at end of each branch.
(ccl-mule-utf-8-encode-untrans): New CCL.
(ccl-encode-mule-utf-8): Call ccl-mule-utf-8-encode-untrans.
(ccl-untranslated-to-ucs): Handle 2-byte encoding.  Set r1 to the
length of encoding.  Don't return r0.
(utf-8-compose): New arg hash-table.  Handle 2-byte encoding.
(utf-8-post-read-conversion): Narrow to region properly.  If
utf-translate-cjk-mode is on, load tables if necessary.  Call
utf-8-compose with hash-table arg if necessary.  Call
XXX-compose-region instead of XXX-post-read-convesion.
(utf-8-pre-write-conversion): New function.
(mule-utf-8): Include CJK charsets in safe-charsets if
utf-translate-cjk-mode is on.  Add pre-write-conversion.
lisp/international/utf-8.el